home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / msqc25t1 / filemisc.h < prev    next >
Text File  |  1990-09-05  |  1KB  |  43 lines

  1. /* Library FILEMISC.H: Miscellaneous file service functions that extends
  2.     Quick C
  3. --------------------------------------------------------------------------
  4.  
  5.   _chmod(): Stretched version of Quick C chmod function
  6. Changes a named file to any attribute except label and directory.
  7.  
  8. Returns 0 if successful, -1 if not, and gets global variable errno when
  9. unsuccessful.
  10.  
  11. */
  12.  
  13. int _chmod (char far *path, int new_attrib);
  14.  
  15.  
  16. /*
  17.  
  18. timestamp(): Converts the DOS file time stamp into:
  19.     1. A formatted string of 12 chars (hh:mm:ss ?m)
  20.     2. Its hour, min, and sec numric components
  21. For any component not to be converted, pass NULL arg
  22.  
  23. */
  24.  
  25. void timestamp (unsigned field,
  26.     char *string, unsigned *hour,
  27.     unsigned *min, unsigned *sec);
  28.  
  29.  
  30. /*
  31.  
  32. datestamp(): Converts the DOS file date stamp into:
  33.     1. A formatted string of 11 chars (mm/dd/yyyy)
  34.     2. Its month, day, and year numric components
  35. For any component not to be converted, pass NULL arg
  36.  
  37. */
  38.  
  39. void datestamp (unsigned field,
  40.     char *string, unsigned *year,
  41.     unsigned *month, unsigned *day);
  42.  
  43.